package com.aloda.orangebank.service.impl;

import com.aloda.orangebank.mapper.HomepageMapper;
import com.aloda.orangebank.pojo.Carousel;
import com.aloda.orangebank.service.HomepageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomepageServiceImpl implements HomepageService {

    @Autowired
    private HomepageMapper homepageMapper;

    @Override
    public List<Carousel> getCarousel() {
        return homepageMapper.getCarousel();
    }
}
